<?php

namespace Database\Seeders;

use App\Models\TaskServiceType;
use Illuminate\Database\Seeder;

class TaskServiceTypeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $defaults = [
            '信息技术服务',
            '现代服务',
            '设计服务',
            '其他咨询服务',
        ];

        foreach ($defaults as $name) {
            TaskServiceType::firstOrCreate(
                ['name' => $name],
                ['created_at' => now(), 'updated_at' => now()]
            );
        }
    }
}
